import request from '@/utils/request'

// 查询药品库存上下限列表 (分页)
export function selectPageDrugStorageProfile(query) {
  return request({
    url: '/drug/drugStorageProfile/selectPage',
    method: 'get',
    params: query
  })
}

// 查询药品库存上下限列表 (不分页)
export function listDrugStorageProfile(query) {
  return request({
    url: '/drug/drugStorageProfile/list',
    method: 'get',
    params: query
  })
}

// 查询药品库存上下限详细
export function getDrugStorageProfile(drugStorageProfileId) {
  return request({
    url: '/drug/drugStorageProfile/' + drugStorageProfileId,
    method: 'get'
  })
}

// 新增药品库存上下限
export function addDrugStorageProfile(data) {
  return request({
    url: '/drug/drugStorageProfile',
    method: 'post',
    data: data
  })
}

// 修改药品库存上下限
export function updateDrugStorageProfile(data) {
  return request({
    url: '/drug/drugStorageProfile',
    method: 'put',
    data: data
  })
}

// 删除药品库存上下限
export function delDrugStorageProfile(drugStorageProfileId) {
  return request({
    url: '/drug/drugStorageProfile/' + drugStorageProfileId,
    method: 'delete'
  })
}


// 查询药品低于库存下线药品
export function getCheckDownQuantity(query) {
  return request({
    url: '/drug/drugStorageProfile/getCheckDownQuantity',
    method: 'get',
    params: query
  })
}

